using System;
using System.Collections.Generic;
using System.Text;

namespace Sucrose.Base
{
    public abstract class CourseItem
    {
        #region instanceVars

        private int id;
        private String name;
        private String description;
        private String url;
        private DateTime lastModified;
        private Course course;

        #endregion

        #region basicProperties

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                this.id = value;
            }
        }

        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                this.name = value;
            }
        }

        public String Description
        {
            get
            {
                return description;
            }
            set
            {
                this.description = value;
            }
        }

        public String Url
        {
            get
            {
                return url;
            }
            set
            {
                this.url = value;
            }
        }
        
        public DateTime LastModified
        {
            get
            {
                return lastModified;
            }
            set
            {
                this.lastModified = value;
            }
        }

        public Course Course
        {
            get
            {
                return course;
            }
            set
            {
                this.course = value;
            }
        }

        #endregion

        #region constructors

        /// <summary>
        /// Creates a new CourseItem
        /// </summary>
        public CourseItem()
        {
        }

        /// <summary>
        /// Creates a new CourseItem
        /// </summary>
        /// <param name="id">ID of the CourseItem</param>
        /// <param name="name">Name of the CourseItem</param>
        /// <param name="description">A description of the CourseItem</param>
        /// <param name="url">The LMS page for the CourseItem</param>
        /// <param name="lastModified">The last modified date of the CourseItem</param>
        /// <param name="course">The Course that this CourseItem is a part of</param>
        public CourseItem(int id, String name, String description, String url, DateTime lastModified, Course course)
        {
            this.id = id;
            this.name = name;
            this.description = description;
            this.url = url;
            this.lastModified = lastModified;
            this.course = course;
        }

        #endregion
    }
}
